package com.glls.account.controller;

import com.glls.account.service.AccountService;
import com.glls.common.vo.OrderVo;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author junyang
 * @version 1.0.0
 * @date 2025/2/24 14:48
 */
@RestController
@RequestMapping("/account")
public class AccountController {
    @Resource
    private AccountService accountService;

    @PostMapping("/updateAccount")
    public int updateAccount(@RequestBody OrderVo order) {
        return accountService.updateAccount(order);
    }


}
